Optimal. Leaf size=74 \[ \frac {b (b c-a d)^2 x}{d^3}-\frac {(b c-a d) (a+b x)^2}{2 d^2}+\frac {(a+b x)^3}{3 d}-\frac {(b c-a d)^3 \log (c+d x)}{d^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.069, Rules used = {640, 45}
\begin {gather*} -\frac {(b c-a d)^3 \log (c+d x)}{d^4}+\frac {b x (b c-a d)^2}{d^3}-\frac {(a+b x)^2 (b c-a d)}{2 d^2}+\frac {(a+b x)^3}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 640
Rubi steps
\begin {align*} \int \frac {(a+b x)^4}{a c+(b c+a d) x+b d x^2} \, dx &=\int \frac {(a+b x)^3}{c+d x} \, dx\\ &=\int \left (\frac {b (b c-a d)^2}{d^3}-\frac {b (b c-a d) (a+b x)}{d^2}+\frac {b (a+b x)^2}{d}+\frac {(-b c+a d)^3}{d^3 (c+d x)}\right ) \, dx\\ &=\frac {b (b c-a d)^2 x}{d^3}-\frac {(b c-a d) (a+b x)^2}{2 d^2}+\frac {(a+b x)^3}{3 d}-\frac {(b c-a d)^3 \log (c+d x)}{d^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 74, normalized size = 1.00 \begin {gather*} \frac {b d x \left (18 a^2 d^2+9 a b d (-2 c+d x)+b^2 \left (6 c^2-3 c d x+2 d^2 x^2\right )\right )-6 (b c-a d)^3 \log (c+d x)}{6 d^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.78, size = 109, normalized size = 1.47
method | result | size |
norman | \(\frac {b \left (3 a^{2} d^{2}-3 a b c d +b^{2} c^{2}\right ) x}{d^{3}}+\frac {b^{3} x^{3}}{3 d}+\frac {b^{2} \left (3 a d -b c \right ) x^{2}}{2 d^{2}}+\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (d x +c \right )}{d^{4}}\) | \(107\) |
default | \(\frac {b \left (\frac {1}{3} b^{2} d^{2} x^{3}+\frac {3}{2} a b \,d^{2} x^{2}-\frac {1}{2} b^{2} c d \,x^{2}+3 a^{2} d^{2} x -3 a b c d x +b^{2} c^{2} x \right )}{d^{3}}+\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (d x +c \right )}{d^{4}}\) | \(109\) |
risch | \(\frac {b^{3} x^{3}}{3 d}+\frac {3 b^{2} a \,x^{2}}{2 d}-\frac {b^{3} c \,x^{2}}{2 d^{2}}+\frac {3 b \,a^{2} x}{d}-\frac {3 b^{2} a c x}{d^{2}}+\frac {b^{3} c^{2} x}{d^{3}}+\frac {\ln \left (d x +c \right ) a^{3}}{d}-\frac {3 \ln \left (d x +c \right ) a^{2} b c}{d^{2}}+\frac {3 \ln \left (d x +c \right ) a \,b^{2} c^{2}}{d^{3}}-\frac {\ln \left (d x +c \right ) b^{3} c^{3}}{d^{4}}\) | \(133\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 114, normalized size = 1.54 \begin {gather*} \frac {2 \, b^{3} d^{2} x^{3} - 3 \, {\left (b^{3} c d - 3 \, a b^{2} d^{2}\right )} x^{2} + 6 \, {\left (b^{3} c^{2} - 3 \, a b^{2} c d + 3 \, a^{2} b d^{2}\right )} x}{6 \, d^{3}} - \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (d x + c\right )}{d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.02, size = 115, normalized size = 1.55 \begin {gather*} \frac {2 \, b^{3} d^{3} x^{3} - 3 \, {\left (b^{3} c d^{2} - 3 \, a b^{2} d^{3}\right )} x^{2} + 6 \, {\left (b^{3} c^{2} d - 3 \, a b^{2} c d^{2} + 3 \, a^{2} b d^{3}\right )} x - 6 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (d x + c\right )}{6 \, d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 83, normalized size = 1.12 \begin {gather*} \frac {b^{3} x^{3}}{3 d} + x^{2} \cdot \left (\frac {3 a b^{2}}{2 d} - \frac {b^{3} c}{2 d^{2}}\right ) + x \left (\frac {3 a^{2} b}{d} - \frac {3 a b^{2} c}{d^{2}} + \frac {b^{3} c^{2}}{d^{3}}\right ) + \frac {\left (a d - b c\right )^{3} \log {\left (c + d x \right )}}{d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.79, size = 116, normalized size = 1.57 \begin {gather*} \frac {2 \, b^{3} d^{2} x^{3} - 3 \, b^{3} c d x^{2} + 9 \, a b^{2} d^{2} x^{2} + 6 \, b^{3} c^{2} x - 18 \, a b^{2} c d x + 18 \, a^{2} b d^{2} x}{6 \, d^{3}} - \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left ({\left | d x + c \right |}\right )}{d^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.57, size = 118, normalized size = 1.59 \begin {gather*} x^2\,\left (\frac {3\,a\,b^2}{2\,d}-\frac {b^3\,c}{2\,d^2}\right )+x\,\left (\frac {3\,a^2\,b}{d}-\frac {c\,\left (\frac {3\,a\,b^2}{d}-\frac {b^3\,c}{d^2}\right )}{d}\right )+\frac {\ln \left (c+d\,x\right )\,\left (a^3\,d^3-3\,a^2\,b\,c\,d^2+3\,a\,b^2\,c^2\,d-b^3\,c^3\right )}{d^4}+\frac {b^3\,x^3}{3\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________